home *** CD-ROM | disk | FTP | other *** search
- 20
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FlushIni
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFlushIni forces Windows to write an ini file to disk.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFlushIni( Filename )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Filename is the name of the ini file to flush.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Void.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- baFlushIni( the moviePath & "data.ini" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- baFlushIni( FileLocation ^ "data.ini" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function is for use with the other ini file functions. When Windows writes an ini
- --- RECORDSEPARATOR ---
- file it keeps it cached for a short time. This does not cause problems when using
- --- RECORDSEPARATOR ---
- only the ini functions. However, if you want to write an ini file, then immediately do
- --- RECORDSEPARATOR ---
- something else with it, say, encrypt it, then you should use this function to force
- --- RECORDSEPARATOR ---
- Windows to write the file to disk before you use it.
- --- RECORDSEPARATOR ---
- eg.
- --- RECORDSEPARATOR ---
- baWriteIni( "data", "password", pw, iniFile ) -- write ini file
- --- RECORDSEPARATOR ---
- baFlushIni( iniFile ) -- force it to disk
- --- RECORDSEPARATOR ---
- baEncryptFile( iniFile, key ) -- encrypt it
- --- RECORDSEPARATOR ---
- This functions is not needed if you are only using baWriteIni and baReadIni on your
- --- RECORDSEPARATOR ---
- ini files.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baReadIni
- --- RECORDSEPARATOR ---
- baWriteIni